import java.awt.Graphics;
import java.awt.Image;
import java.io.File;
import java.io.IOException;
import javax.imageio.ImageIO;
import javax.swing.JPanel;
import java.awt.Color;
import java.awt.Font;
import javax.swing.JFrame;

public class Terrain 
{
	private String id;
	private int defence;
	
	/**************CONSTRUCTEUR*************/
	public Terrain()
	{}
	
	public Terrain(String nom) {
		super();
		if(nom.equals("eau.png")) {this.defence = 0; this.id="eau";}
		if(nom.equals("foret.png")) {this.defence = 2; this.id="foret";}
		if(nom.equals("montagne.png")) {this.defence = 3; this.id="montagne";}
		if(nom.equals("plaine.png")) {this.defence = 1; this.id="plaine";}
		if(nom.equals("route.png")) {this.defence = 0; this.id="route";}
		if(nom.equals("ville.png")) {this.defence = 3; this.id="ville";}
	}
	/****************METHODE****************/
	public void affichage(int posx, int posy)
	{
		
	}

	/***************ACCESSEUR***************/
	public String getId() {
		return this.id;
	}
	
	public int getDefence() {
		return this.defence;
	}
	
}
